package saeildamil.ch18.quiz2;

public class ResultThread extends Thread {
	SharedArea sharedArea;
	@Override
	public void run() {
		if(sharedArea.ratio == null){
			
			try {
				synchronized (sharedArea) {
					sharedArea.wait();
				}
			} catch (InterruptedException e) {
				System.out.println();
			}
		
			
		}
		System.out.println(sharedArea.ratio);
	}
}
